package com.taiji.oauth2.authorizeserver.properties;


import com.taiji.oauth2.authorizeserver.constants.AuthorizeServerConstants;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Getter
@Setter
@ConfigurationProperties(prefix = "authorize.security")
@Component
public class AuthorizeServerProperties {

    List<Map<String,String>> clients = AuthorizeServerConstants.CLIENTS;

    String [] scopes = AuthorizeServerConstants.SCOPES;

    String [] grantTypes = AuthorizeServerConstants.GRANT_TYPES;

    int accessTokenValid = AuthorizeServerConstants.ACCESS_TOKEN_VALID;

    int refreshTokenValid = AuthorizeServerConstants.REFRESH_TOKEN_VALID;

}
